package cn.com.generaldata.os.pojo;

import java.util.HashSet;
import java.util.Set;

import com.sun.xml.internal.bind.CycleRecoverable;

public class Unit implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = 3222694686918819402L;

	private String id; // 企业ID
	private Role role; // 角色
	private String industryId; // 选择对应的行业
	private Area area; // 所在地行政区划
	private LArea larea;// 乡级别行政区划
	private String unitName; // 企业名称
	private String unitInstitutionName; // 组织机构名称
	private String unitInstitutionCode; // 组织机构代码
	private String registAdd; // 单位注册地------------------------------------------------
	private String addr; // 详细地址---单位所在地
	private Area registArea;// 注册地行政区划
	private LArea registLArea;// 注册地乡级别行政区划
	private String qh; // 长途区号
	private String tel;// 联系电话
	private String fax;// 电子邮箱
	private String mobile;// 企业网址
	private String zclx; // 登记注册类型
	private String lsgx; // 企业隶属关系
	private String dl; // 大类
	private String zl; // 中类
	private String xl; // 小类
	private String lm; // 国民经济行业代码
	private String yyzt; // 营业状态
	private String product1; // 产品一---------------------------------------------------
	private String product2; // 产品二---------------------------------------------------
	private String product3; // 产品三---------------------------------------------------
	private String kgqk; // 企业控股情况
	private int practitioner; // 从业人员
	private String qyjt;// 企业集团情况
	private String superCompanyCode; // 企业编号----------------------------------
	private String fr;// 法人
	private String unitProper;// 企业类别（1：涉海2：用海3：开发区）
	private String createYear;// 录入年份
	private String proInfo;//企业简介
	private String kkx;//经度（度）
	private String kky;//经度（分）
	private String kkz;//经度（秒）
	private String dlx;//纬度（度）
	private String dly;//纬度（分）
	private String dlz;//纬度（秒）
	private String pid;//父级ID
	private String status;//状态1：正常0：删除

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateYear() {
		return createYear;
	}

	public String getProInfo() {
		return proInfo;
	}

	public void setProInfo(String proInfo) {
		this.proInfo = proInfo;
	}

	public String getKkx() {
		return kkx;
	}

	public void setKkx(String kkx) {
		this.kkx = kkx;
	}

	public String getKky() {
		return kky;
	}

	public void setKky(String kky) {
		this.kky = kky;
	}

	public String getKkz() {
		return kkz;
	}

	public void setKkz(String kkz) {
		this.kkz = kkz;
	}

	public String getDlx() {
		return dlx;
	}

	public void setDlx(String dlx) {
		this.dlx = dlx;
	}

	public String getDly() {
		return dly;
	}

	public void setDly(String dly) {
		this.dly = dly;
	}

	public String getDlz() {
		return dlz;
	}

	public void setDlz(String dlz) {
		this.dlz = dlz;
	}

	public void setCreateYear(String createYear) {
		this.createYear = createYear;
	}

	public String getUnitProper() {
		return unitProper;
	}

	public void setUnitProper(String unitProper) {
		this.unitProper = unitProper;
	}

	Set<User> users = new HashSet<User>(0);

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	public Unit() {
	}

	public Unit(String id, Role role) {
		this.id = id;
		this.role = role;

	}

	public Unit(String id, Role role, String industryId, Area area, LArea larea, String unitName,
			String unitInstitutionName, String unitInstitutionCode, String registAdd, String addr, Area registArea,
			LArea registLArea, String qh, String tel, String fax, String mobile, String zclx, String lsgx, String dl,
			String zl, String xl, String lm, String yyzt, String product1, String product2, String product3,
			String kgqk, int practitioner, String qyjt, String superCompanyCode, String fr, String unitProper,
			String createYear, Set<User> users, String proInfo, String kkx, String kky, String kkz, String dlx,
			String dly, String dlz, String pid, String status) {
		super();
		this.id = id;
		this.role = role;
		this.industryId = industryId;
		this.area = area;
		this.larea = larea;
		this.unitName = unitName;
		this.unitInstitutionName = unitInstitutionName;
		this.unitInstitutionCode = unitInstitutionCode;
		this.registAdd = registAdd;
		this.addr = addr;
		this.registArea = registArea;
		this.registLArea = registLArea;
		this.qh = qh;
		this.tel = tel;
		this.fax = fax;
		this.mobile = mobile;
		this.zclx = zclx;
		this.lsgx = lsgx;
		this.dl = dl;
		this.zl = zl;
		this.xl = xl;
		this.lm = lm;
		this.yyzt = yyzt;
		this.product1 = product1;
		this.product2 = product2;
		this.product3 = product3;
		this.kgqk = kgqk;
		this.practitioner = practitioner;
		this.qyjt = qyjt;
		this.superCompanyCode = superCompanyCode;
		this.fr = fr;
		this.unitProper = unitProper;
		this.createYear = createYear;
		this.users = users;
		this.proInfo = proInfo;
		this.kkx = kkx;
		this.kky = kky;
		this.kkz = kkz;
		this.dlx = dlx;
		this.dly = dly;
		this.dlz = dlz;
		this.pid = pid;
		this.status = status;
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		Unit temp = new Unit();
		temp.setId(id);
		return temp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getIndustryId() {
		return industryId;
	}

	public void setIndustryId(String industryId) {
		this.industryId = industryId;
	}

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public LArea getLarea() {
		return larea;
	}

	public void setLarea(LArea larea) {
		this.larea = larea;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getUnitInstitutionName() {
		return unitInstitutionName;
	}

	public void setUnitInstitutionName(String unitInstitutionName) {
		this.unitInstitutionName = unitInstitutionName;
	}

	public String getUnitInstitutionCode() {
		return unitInstitutionCode;
	}

	public void setUnitInstitutionCode(String unitInstitutionCode) {
		this.unitInstitutionCode = unitInstitutionCode;
	}

	public String getRegistAdd() {
		return registAdd;
	}

	public void setRegistAdd(String registAdd) {
		this.registAdd = registAdd;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Area getRegistArea() {
		return registArea;
	}

	public void setRegistArea(Area registArea) {
		this.registArea = registArea;
	}

	public LArea getRegistLArea() {
		return registLArea;
	}

	public void setRegistLArea(LArea registLArea) {
		this.registLArea = registLArea;
	}

	public String getQh() {
		return qh;
	}

	public void setQh(String qh) {
		this.qh = qh;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getZclx() {
		return zclx;
	}

	public void setZclx(String zclx) {
		this.zclx = zclx;
	}

	public String getLsgx() {
		return lsgx;
	}

	public void setLsgx(String lsgx) {
		this.lsgx = lsgx;
	}

	public String getDl() {
		return dl;
	}

	public void setDl(String dl) {
		this.dl = dl;
	}

	public String getZl() {
		return zl;
	}

	public void setZl(String zl) {
		this.zl = zl;
	}

	public String getXl() {
		return xl;
	}

	public void setXl(String xl) {
		this.xl = xl;
	}

	public String getLm() {
		return lm;
	}

	public void setLm(String lm) {
		this.lm = lm;
	}

	public String getYyzt() {
		return yyzt;
	}

	public void setYyzt(String yyzt) {
		this.yyzt = yyzt;
	}

	public String getProduct1() {
		return product1;
	}

	public void setProduct1(String product1) {
		this.product1 = product1;
	}

	public String getProduct2() {
		return product2;
	}

	public void setProduct2(String product2) {
		this.product2 = product2;
	}

	public String getProduct3() {
		return product3;
	}

	public void setProduct3(String product3) {
		this.product3 = product3;
	}

	public String getKgqk() {
		return kgqk;
	}

	public void setKgqk(String kgqk) {
		this.kgqk = kgqk;
	}

	public int getPractitioner() {
		return practitioner;
	}

	public void setPractitioner(int practitioner) {
		this.practitioner = practitioner;
	}

	public String getQyjt() {
		return qyjt;
	}

	public void setQyjt(String qyjt) {
		this.qyjt = qyjt;
	}

	public String getSuperCompanyCode() {
		return superCompanyCode;
	}

	public void setSuperCompanyCode(String superCompanyCode) {
		this.superCompanyCode = superCompanyCode;
	}

	public String getFr() {
		return fr;
	}

	public void setFr(String fr) {
		this.fr = fr;
	}

}
